package com.sky.mapper;


import com.sky.entity.ShoppingCart;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ShoppingCartMapper {

    List<ShoppingCart> findShoppingCartByCondition(ShoppingCart condition);

    void insertShoppingCart(ShoppingCart shoppingCart);

    void changeShoppingCartNum(@Param("id")Long id,@Param("i") int i);

    List<ShoppingCart> selectShoppingCart();


    Integer deleteShoppingCart(Long id);


    void delete(Long currentId);
}
